package com.ding.dailyup.constant;

public enum HotIndustryDayTypeEnum {
    TODAY(1,"今日","https://push2.eastmoney.com/api/qt/clist/get?cb=jQuery11230429569370849582_1651967986175&fid=f3&po=1&pz=200&pn=1&np=1&fltt=2&invt=2&ut=b2884a393a59ad64002292a3e90d46a5&fs=m%3A90+t%3A2&fields=f12%2Cf14%2Cf2%2Cf3%2Cf62%2Cf184%2Cf66%2Cf69%2Cf72%2Cf75%2Cf78%2Cf81%2Cf84%2Cf87%2Cf204%2Cf205%2Cf124%2Cf1%2Cf13"),
    FIVEDAY(2,"五日","https://push2.eastmoney.com/api/qt/clist/get?cb=jQuery11230429569370849582_1651967986177&fid=f109&po=1&pz=200&pn=1&np=1&fltt=2&invt=2&ut=b2884a393a59ad64002292a3e90d46a5&fs=m%3A90+t%3A2&fields=f12%2Cf14%2Cf2%2Cf109%2Cf164%2Cf165%2Cf166%2Cf167%2Cf168%2Cf169%2Cf170%2Cf171%2Cf172%2Cf173%2Cf257%2Cf258%2Cf124%2Cf1%2Cf13"),
    TENDAY(3,"十日","https://push2.eastmoney.com/api/qt/clist/get?cb=jQuery11230429569370849582_1651967986177&fid=f160&po=1&pz=200&pn=1&np=1&fltt=2&invt=2&ut=b2884a393a59ad64002292a3e90d46a5&fs=m%3A90+t%3A2&fields=f12%2Cf14%2Cf2%2Cf160%2Cf174%2Cf175%2Cf176%2Cf177%2Cf178%2Cf179%2Cf180%2Cf181%2Cf182%2Cf183%2Cf260%2Cf261%2Cf124%2Cf1%2Cf13");

	private int dayType;
	private String desc;
	private String queryUrl;

	HotIndustryDayTypeEnum(int dayType, String desc, String queryUrl) {
		this.dayType = dayType;
		this.desc = desc;
		this.queryUrl = queryUrl;
	}

	public String getQueryUrl() {
		return queryUrl;
	}

	public int getDayType() {
		return dayType;
	}

	public static String getQueryUrl(int dayType) {
		for (HotIndustryDayTypeEnum value : HotIndustryDayTypeEnum.values()) {
			if (value.dayType == dayType) {
				return value.queryUrl;
			}
		}
		return "";
	}
}
